package com.bestcem.xm.common.core.sql;

import lombok.Getter;
import lombok.Setter;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 描述
 * @date 2021-11-15
 */
@Getter
@Setter
public class ColumnDesc {
    public static final int JDBC_TYPE_BINARY = 0;
    public static final int JDBC_TYPE_INTEGER = 1;

    private String name;
    private Integer jdbcType;

    public ColumnDesc(String name, Integer jdbcType) {
        this.name = name;
        this.jdbcType = jdbcType;
    }

    public static ColumnDesc newInstance(String name) {
        return new ColumnDesc(name, null);
    }

    public static ColumnDesc newInstance(String name, Integer jdbcType) {
        return new ColumnDesc(name, jdbcType);
    }
}
